<?php
require_once("./DButil.php");
header("Content-Type:application/json;charset=utf-8");



$sql="select roleId,roleName from t_role";

if (query($sql)) {
    $result=query($sql);
}else{
    $result=null;
}

echo json_encode($result);

?>